<template>
  <div class="carDetail">
    <el-row>
      <el-col :span="24"
              class="carDetail-top">
        <div class="carTitle">车辆信息</div>
      </el-col>
      <el-col :span="24">
        <el-form :model="ruleForm"
                 ref="ruleForm"
                 label-width="100px"
                 class="demo-ruleForm normal-ruleForm">
          <el-form-item label="车牌号"
                        prop="carNum">
            <el-input class="normal-input"
                      disabled
                      v-model="ruleForm.carNum"></el-input>
          </el-form-item>
          <el-form-item label="车辆类型"
                        prop="carStyle">
            <el-input class="normal-input"
                      disabled
                      v-model="ruleForm.carStyle"></el-input>
          </el-form-item>
          <el-form-item label="司机姓名"
                        prop="driver">
            <el-input class="normal-input"
                      disabled
                      v-model="ruleForm.driver"></el-input>
          </el-form-item>
          <el-form-item label="联系电话"
                        prop="phone">
            <el-input class="normal-input"
                      disabled
                      v-model="ruleForm.phone"></el-input>
          </el-form-item>
          <el-form-item>
            <el-button @click="goBack()">返回</el-button>
          </el-form-item>
        </el-form>
      </el-col>
    </el-row>
  </div>
</template>
<script>
export default {
  data () {
    return {
      ruleForm: {
        carNum: "",
        carStyle: "",
        driver: "",
        phone: ""
      }
    }
  },
  methods: {
    goBack () {
      this.$router.go(-1)
    }
  }
}
</script>
<style lang="scss" scoped>
.carDetail {
  padding: 20px;
  .carDetail-top {
    margin-bottom: 20px;
    .carTitle {
      color: #1441b3;
      font-size: 18px;
    }
  }
  .normal-ruleForm {
    .normal-input {
      width: 80%;
    }
  }
}
</style>
